import {Component} from '@angular/core';
import {Http, Response, RequestOptions, Headers} from '@angular/http';
import {Observable}     from 'rxjs/Observable';
import 'rxjs/add/operator/map';
import 'rxjs/add/operator/toPromise';
import 'rxjs/add/operator/catch';
import {Router, ActivatedRoute, NavigationEnd} from "@angular/router";

import "bootstrap-table-js"
import "bootstrap-table-js-cn"
import {NavigationBarService} from "../../service/navigationBar.service";
declare var $: any;
@Component({
    moduleId: module.id,
    selector: 'console-component',
    templateUrl: "./console.html",
    providers: []
})
export class ConsoleComponent {
    constructor(private navigationBarService: NavigationBarService) {

    }


    ngOnInit(): void {
        $(function () {
            var resetFrontContentHeight = function () {
                $("#content").height($(window).height() - 50);
            }
            resetFrontContentHeight()


            $(window).resize(function () {
                resetFrontContentHeight()
            });
        });
    }

}